package cn.sheep.violet.utils

import cn.sheep.violet.config.ConfigHandler
import redis.clients.jedis.JedisPool

/**
  * author: old sheep
  * QQ: 64341393 
  * Created 2018/10/17
  */
object Jpools {

    // 生产环境下，最好要配置一下jedis连接池的相关参数
    private val jedisPool = new JedisPool(ConfigHandler.jedisHost, ConfigHandler.jedisPort)


    def getJedis = jedisPool.getResource

}
